package pers.qianyu.module.image.listener.events;

import org.springframework.context.ApplicationEvent;
import pers.qianyu.module.core.domain.image.entity.ImagePO;
import pers.qianyu.module.core.domain.image.enums.NoticeTypeEnum;

import java.io.Serializable;

/**
 * @author mizzle rain
 * @date 2021-03-18 17:39
 */
public class CollectImageEvent extends ApplicationEvent implements Serializable {
    private static final long serialVersionUID = 106641622113856577L;
    private ImagePO imagePO;
    private Long operatorId;
    private NoticeTypeEnum type;

    public CollectImageEvent(Object source, ImagePO imagePO, Long operatorId, NoticeTypeEnum type) {
        super(source);
        this.imagePO = imagePO;
        this.operatorId = operatorId;
        this.type = type;
    }

    public ImagePO getImagePO() {
        return imagePO;
    }

    public void setImagePO(ImagePO imagePO) {
        this.imagePO = imagePO;
    }

    public Long getOperatorId() {
        return operatorId;
    }

    public void setOperatorId(Long operatorId) {
        this.operatorId = operatorId;
    }

    public NoticeTypeEnum getType() {
        return type;
    }

    public void setType(NoticeTypeEnum type) {
        this.type = type;
    }
}
